//
//  ZLAppDelegate+Settings.m
//  ZLExamination
//
//  Created by Zheng on 2017/8/9.
//  Copyright © 2017年 Zheng. All rights reserved.
//

#import "ZLAppDelegate+Settings.h"
#import "ZLLoginViewController.h"

#import "ZLTabBarController.h"

@implementation ZLAppDelegate (Settings)

- (UIViewController *)setRootControllerWithStyle:(ZLLoginTypeStyle)style {
    switch (style) {
        case ZLLoginTypeStyleMain: {
            ZLTabBarController *mainVC = [[ZLTabBarController alloc] init];
            return mainVC;
        }
        case ZLLoginTypeStyleLogin: {
            ZLLoginViewController *loginVC = [[ZLLoginViewController alloc] init];
            return loginVC;
        }
    }
}

@end
